package com.example.loginsystem.dao;

import com.example.loginsystem.bean.MyUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Cheung0
 * Created on 2021/11/11
 */
@Mapper
public interface  MyUserDAO {

        MyUser getByUsername(String username);

        int getUserId(String username);

        int addUser(MyUser myUser);

        int addUserRole(int userId,int roleId);

        int updateUserRole(int userId,int roleId);

        int deleteUser(int id);

        int updateUser(MyUser myUser);

        List<MyUser> getAll();

}
